package com.shawn;

import redis.clients.jedis.Jedis;

public class HyperLogLogTest {

	public static void main(String[] args) {
		Jedis jedis = new Jedis("192.168.0.102");
		jedis.auth("Gepoint");

		for (int i = 0; i < 1000 * 100; i++) {
			jedis.pfadd("user", "user" + i);

//			if(count != i + 1){
//				System.out.printf("%d\t%d\n", count, i + 1);
//				break;
//			}
		}
		long count = jedis.pfcount("user");
		System.out.printf("%d\t%d\n", 1000 * 100, count);
		jedis.close();
	}

}
